import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/9/1 10:49
 */
public class feifu2 {

    /**
     * @author zhaoqian
     * @create 2021/9/1 10:49
     */

        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);

            while (in.hasNext()){
                float avg=0.0f;
                int total=0;
                float sum1=0.0f;
                int sum=0;
                int n = in.nextInt();
                for(int i=0;i<n;i++){
                    int s = in.nextInt();
                    if(s>0){
                        total=total+s;
                        sum1++;
                    }
                    else if(s<0){
                        sum++;
                    }else{

                    }
                    if(sum1!=0){
                        avg=total/sum1;
                    }
                }
                System.out.println(sum+" "+ String.format("%.1f",avg));

            }

        }
    }